'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview pvp地图
 * @author sundbcn@gmail.com (sun debing)
 */

var async = require('async');
var mapEnter = require('./map/enter');
var mapRandom = require('./map/random');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 进入大地图
 * @param  {[type]}   msg     [description]
 * @param  {[type]}   session [description]
 * @param  {Function} next    [description]
 * @return {[type]}           [description]
 */
Handler.prototype.enter = function (msg, session, next) {
    mapEnter(msg, session, next);
};

Handler.prototype.random = function (msg, session, next) {
    mapRandom(msg, session, next);
};
